package com.bwie.remote;

import com.bwie.common.pojo.dto.UserDto;
import com.bwie.common.pojo.po.UserPo;
import com.bwie.remote.fegin.AuthFallbackFactoryService;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "bwie-system",fallbackFactory = AuthFallbackFactoryService.class)
public interface AuthRemoteService {
    @PostMapping("user/login")
    UserPo login(@RequestBody UserDto userDto);
}
